Skip to content

chore: add snapshot testing via md files #1054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Feb 3, 2024

Conversation

mogery
Copy link
Contributor

@mogery mogery commented Jan 27, 2024

Summary:
This PR adds tests/execution_spec.rs, which uses snapshots via insta and .md specs to perform testing, like outlined in #983. It also adds testconv, an automatic test converter.

To-do:

  • Convert from http_spec
  • Convert from graphql_spec

Issue Reference(s):
Fixes #983
/claim #983

Build & Testing:

  • I ran cargo test successfully.
  • I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

  • I have added relevant unit & integration tests.
  • I have updated the documentation accordingly.
  • I have performed a self-review of my code.
  • PR follows the naming convention of <type>(<optional scope>): <title>

@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Jan 27, 2024
@mogery mogery force-pushed the mog/execution-spec branch from 34a041b to 14b6694 Compare January 30, 2024 07:49
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f3cf2f1) 88.26% compared to head (9976d54) 88.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1054      +/-   ##
==========================================
+ Coverage   88.26%   88.38%   +0.11%     
==========================================
  Files         102      102              
  Lines       10994    10994              
==========================================
+ Hits         9704     9717      +13     
+ Misses       1290     1277      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mogery
Copy link
Contributor Author

mogery commented Jan 31, 2024

This is now ready. I've also written some docs.

@tusharmath tusharmath enabled auto-merge (squash) February 3, 2024 08:58
@tusharmath tusharmath changed the title feat: add execution_spec for snapshot testing via md files chore: add execution_spec for snapshot testing via md files Feb 3, 2024
@tusharmath tusharmath added type: chore Routine tasks like conversions, reorganization, and maintenance work. and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Feb 3, 2024
@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Feb 3, 2024
@tusharmath tusharmath changed the title chore: add execution_spec for snapshot testing via md files chore: add snapshot testing via md files Feb 3, 2024
auto-merge was automatically disabled February 3, 2024 10:35

Head branch was pushed to by a user without write access

@tusharmath tusharmath merged commit b7843b2 into tailcallhq:main Feb 3, 2024
@tusharmath
Copy link
Contributor

/tip 50$

Copy link

algora-pbc bot commented Feb 3, 2024

🎉🎈 @mogery has been awarded $50! 🎈🎊

@mogery mogery deleted the mog/execution-spec branch February 3, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim 💰 Rewarded type: chore Routine tasks like conversions, reorganization, and maintenance work. type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Perform snapshot testing using md files
2 participants